<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>修改店铺信息</title>
<link type="text/css" href="../css/reset.css" rel="stylesheet" />
<link type="text/css" href="../css/public.css" rel="stylesheet" />
<link type="text/css" href="../css/style.css" rel="stylesheet" />
<link type="text/css" href="../css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>
 <script src="../js/jquery.min.js?v=2.1.4"></script>
 <script src="../js/core.js"></script>
 <script src="../js/26.0.0xiugaidianpuxinxi.js"></script>
</head>

<body>
<!-- top -->
<div class="header">
    <header class="p_header public-red">
        <a href="javascript:history.go(-1);" class="p_header_left">
            <i class="p_left" title="返回"></i>
        </a>
        <h1 class="p_dizhi">修改店铺信息</h1>
        <a href="" id="jingrudianpu" class="p_header_right">进入店铺</a>
    </header>
</div>
<!--免费开店-->
<form>
	 <input  type="text" style="display: none;" id="hunpi"/>
    <input type="text" style="display: none;"  id="baohuan"/>
    <input type="text" style="display: none;"  id="touxiang"/>
    <input type="text" style="display: none;"  id="idss"/>
    <input type="text" style="display: none;"  id="fengmian"/>
	<!--头像-->
	<div class="buy_fabu" style="margin-top: 0;" id="dianjiatouxiang">
	   
	</div>
	<!--店铺实拍图-->
	<div class="dingdan_title">店铺实拍图<span>查看示例图</span></div>
	<!--示例图-->
    <div class="pbulic-shili">
    	<img src="../images/mingpian.png" />
    	<img src="../images/mingpian.png" />
    </div>
	<div class="kaidian_dianpu">
		<p>实拍图上所有的信息清晰可见，必须能看清楚【招牌】,【档口号】以及店铺【整齐的陈列】</p>
		<div class="fabu_dianpu">
			<div id="preview1">
	            <img id="imghead1" border=0 src="../images/img06.jpg" />
	        </div>
	        <h5 class="sell_xiugaidianpu">点击修改实拍图</h5>
	        <div class="fabu_file1"><input type="file" onchange="previewImage1(this)" /></div>
		</div>
	</div>
	<!--店铺信息-->
	<div class="dingdan_title">店铺信息</div>
    <ul class="a_order_inform mid-width">
        <li>
            <span>店铺名称</span>
            <em class="sell_huise" id="mingcheng"></em>
        </li>
        <li>
            <span>店铺等级</span>
            <em id="storeLevels"></em>
        </li>
        <li class="a_last_one a_right_img">
            <span>信誉等级</span> 
            <a href="" class="sell_xiugaidianpu_yun" id="dengji">
            </a>
        </li>
    </ul>
    <!--联系方式-->
	<div class="dingdan_title">联系方式</div>
    <ul class="a_order_inform mid-width">
        <li>
            <span>联系人</span>
            <em> <input type="text" id="userName"></em>
        </li>
        <li>
            <span>联系电话</span>
            <em><input type="text" id="iphon"></em>
        </li>
       <!-- <li class="a_last_one">
            <span>微信</span>
            <input type="text" placeholder="请输入您的微信号" id="weixin">
        </li>-->
   <!-- </ul>
    <div class="dingdan_title">地址信息</div>
    <ul class="a_order_inform mid-width">-->
    	 <li class="a_right_img">
            <span>所在地区</span> 
            <div id='cityResult3' class="dingdan_button">请选择</div>
            <button id='showCityPicker3' class="mui-btn mui-btn-block" type='button'>三级联动示例 ...</button>
        </li>
        <li>
            <span>详细地址</span>
            <em><input type="text" placeholder="请输入您的详细地址" id="dizhi"></em>
        </li>
        <li>
            <span>档口编号</span>
            <em><input type="text" placeholder="请输入您的档口编号" id="dangkoubianhao"></em>
        </li>
     
    </ul>
    <!--批发设置-->
	<div class="dingdan_title">批发设置</div>
    <ul class="a_order_inform mid-width">
    	
  <li class="a_right_img zhiweifabu01">
            <span>主营类别</span> 
            <em class="leibiefuns" onclick="zhuyingleibies()">请选择主营类别</em>
            <div class="payment_time_mask payment_time_mask01">
                <div class="pay_ttl">
                    <h4>主营类别</h4>
                    <span>取消</span>
                </div>
                <ul id="zhuyingleibie">
                  
                </ul>
            </div>
        </li>
        <li>
            <span>打包起批量</span>
            <input type="number" id="dabaoshu">
        </li>
        <li>
            <span>支持混批</span>
            <div class="fl jg_swith">
	            	<div id="hun" class="mui-switch mui-switch-mini" onclick="dianji(this)">
	            		<div class="mui-switch-handle"></div>
					</div>
	            </div>
        </li>
        <li>
            <span>混批件数</span>
            <input type="text" id="hunpijianshu">
        </li>
        <li class="a_last_one">
            <span>支持包换</span>
            <div class="fl jg_swith" >
            	<div class="mui-switch mui-switch-mini mui-active"  onclick="dianjis(this)" id="bao">
            		<div class="mui-switch-handle"></div>
				</div>
            </div>
            <div id="tishis"></div>
           
        </li>
         <li>
            <span>推广代码</span>
            <input type="text" placeholder="可不填" id="tuiguang">
        </li>
    </ul>
    <input type="hidden" id="leibiefuns"/>
    <!--其他信息-->
	<div class="dingdan_title">其他信息</div>
    <ul class="a_order_inform mid-width">
        <li class="a_last_one a_right_img">
            <span style="width: 86px;">快递运费设置</span> 
            <a href="" id="yunfeishezhi" class="sell_xiugaidianpu_yun"></a>
        </li>
    </ul>
    <!--其他信息-->
	<div class="dingdan_title">店铺公告(长度在140个字内)</div>
    <div class="sell_xiugaidianpu_textarea">
    	<textarea placeholder="请输入吸引人的公告" id="gonggao"></textarea>
    </div>
</form>
<!--底部-->
<div class="mid-width">
    <input type="button" class="p_button" onclick="baochun()" value="保存">
</div>
<div class="public-jianxi"></div>
<div id="bg"></div>
<script type="text/javascript" src="../js/jquery-1.10.1.min.js" ></script>
<script type="text/javascript" src="../js/upload.js" ></script>
<link rel="stylesheet" href="../css/mui.min.css">
<!--App自定义的css-->
<link rel="stylesheet" type="text/css" href="../css/app.css" />
<link href="../css/mui.picker.css" rel="stylesheet" />
<link href="../css/mui.poppicker.css" rel="stylesheet" />
<script src="../js/mui.min.js"></script>
<!--<script src="../js/mui.picker.min.js"></script>-->
<script src="../js/mui.picker.js"></script>
<script src="../js/mui.poppicker.js"></script>
<script src="../js/city.data.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
<script src="../js/mui.poppicker.js"></script>
<script>
	//弹窗
    $(function () {
	    $(".zhiweifabu01 em").click(function () {
	        $("#bg").css({
	            display: "block", height: $(document).height()
	        });
	        var $box = $('.payment_time_mask01');
	        $box.css({
	            display: "block",
	        });
	        $(".zhaopin_zpzw_em1").css("color","#04a6e9");
	        $(".zhiweifabu01 i").addClass("up");
	    });
	    //点击关闭按钮的时候，遮罩层关闭
	    $(".payment_time_mask01 li").on('click',function () {
	        $("#bg,.payment_time_mask01").css("display", "none");
	        $(".zhiweifabu01 em").text($(this).html());
	        $(".zhaopin_zpzw_em1").css("color","#04a6e9");
	        $(".zhiweifabu01 i").removeClass("up").addClass("down");
	    });
	});
    $(".pay_ttl span").on('click',function () {
        $("#bg,.payment_time_mask").css("display", "none");
    });
	
	
	$(function(){
		//弹出
		$('.dingdan_title span').on('click',function(){		
			$("body").append("<div id='mask'></div>");
        	$(".pbulic-shili").show();
		});
		//点击关闭
	    $(".pbulic-shili").on('click',function(){
	        $(".pbulic-shili").hide();
	        $("#mask").remove();
	    }) 
	});
	
	
		function  dianji(te){
	     if($(te).attr("class")!="mui-switch mui-switch-mini"){
	     	$("#hunpi").val(1);
	     }else{
	     //	$(te).attr("class","mui-switch mui-switch-mini");
	     	$("#hunpi").val(0);
	     }
}

function  dianjis(te){
	
	$("#tishis").html('');
	 if($(te).attr("class")!="mui-switch mui-switch-mini"){
	     	//$(te).attr("class","mui-switch mui-switch-mini mui-active");
	     	$("#baohuan").val(1);
	       // alert("456")
	     	$("#tishis").append('<p class="fr" style="margin-bottom: 0;" >交易中允许买家退换货</p>');
	     }else{
	     //	$(te).attr("class","mui-switch mui-switch-mini");
	     	$("#baohuan").val(0);
	     	//alert("123")
	     	$("#tishis").append('<p class="fr" style="margin-bottom: 0;" >交易中不允许买家退换货</p>');
	     }
	
	
}
</script>

<script>
	(function($, doc) {
		$.init();
		$.ready(function() {
			//					//级联示例
			var cityPicker3 = new $.PopPicker({
				layer: 3
			});
			cityPicker3.setData(cityData3);
			var showCityPickerButton = doc.getElementById('showCityPicker3');
			var cityResult3 = doc.getElementById('cityResult3');
			showCityPickerButton.addEventListener('tap', function(event) {
				cityPicker3.show(function(items) {
					cityResult3.innerText = (items[0] || {}).text + "-" + (items[1] || {}).text + "-" + (items[2] || {}).text;
					//返回 false 可以阻止选择框的关闭
					//return false;
				});
			}, false);
			
		});
	})(mui, document);
</script>
</body>
</html>